package com.heima.admin.pojos;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 文章数据统计表
 * @TableName ad_article_statistics
 */
@TableName(value ="ad_article_statistics")
@Data
public class AdArticleStatistics implements Serializable {
    /**
     * 主键
     */
    @TableId
    private Integer id;

    /**
     * 主账号ID
     */
    private Integer articleWeMedia;

    /**
     * 子账号ID
     */
    private Integer articleCrawlers;

    /**
     * 频道ID
     */
    private Integer channelId;

    /**
     * 草读量
     */
    private Integer read20;

    /**
     * 读完量
     */
    private Integer read100;

    /**
     * 阅读量
     */
    private Integer readCount;

    /**
     * 评论量
     */
    private Integer comment;

    /**
     * 关注量
     */
    private Integer follow;

    /**
     * 收藏量
     */
    private Integer collection;

    /**
     * 转发量
     */
    private Integer forward;

    /**
     * 点赞量
     */
    private Integer likes;

    /**
     * 不喜欢
     */
    private Integer unlikes;

    /**
     * unfollow
     */
    private Integer unfollow;

    /**
     * 创建时间
     */
    private Date createdTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AdArticleStatistics other = (AdArticleStatistics) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getArticleWeMedia() == null ? other.getArticleWeMedia() == null : this.getArticleWeMedia().equals(other.getArticleWeMedia()))
            && (this.getArticleCrawlers() == null ? other.getArticleCrawlers() == null : this.getArticleCrawlers().equals(other.getArticleCrawlers()))
            && (this.getChannelId() == null ? other.getChannelId() == null : this.getChannelId().equals(other.getChannelId()))
            && (this.getRead20() == null ? other.getRead20() == null : this.getRead20().equals(other.getRead20()))
            && (this.getRead100() == null ? other.getRead100() == null : this.getRead100().equals(other.getRead100()))
            && (this.getReadCount() == null ? other.getReadCount() == null : this.getReadCount().equals(other.getReadCount()))
            && (this.getComment() == null ? other.getComment() == null : this.getComment().equals(other.getComment()))
            && (this.getFollow() == null ? other.getFollow() == null : this.getFollow().equals(other.getFollow()))
            && (this.getCollection() == null ? other.getCollection() == null : this.getCollection().equals(other.getCollection()))
            && (this.getForward() == null ? other.getForward() == null : this.getForward().equals(other.getForward()))
            && (this.getLikes() == null ? other.getLikes() == null : this.getLikes().equals(other.getLikes()))
            && (this.getUnlikes() == null ? other.getUnlikes() == null : this.getUnlikes().equals(other.getUnlikes()))
            && (this.getUnfollow() == null ? other.getUnfollow() == null : this.getUnfollow().equals(other.getUnfollow()))
            && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getArticleWeMedia() == null) ? 0 : getArticleWeMedia().hashCode());
        result = prime * result + ((getArticleCrawlers() == null) ? 0 : getArticleCrawlers().hashCode());
        result = prime * result + ((getChannelId() == null) ? 0 : getChannelId().hashCode());
        result = prime * result + ((getRead20() == null) ? 0 : getRead20().hashCode());
        result = prime * result + ((getRead100() == null) ? 0 : getRead100().hashCode());
        result = prime * result + ((getReadCount() == null) ? 0 : getReadCount().hashCode());
        result = prime * result + ((getComment() == null) ? 0 : getComment().hashCode());
        result = prime * result + ((getFollow() == null) ? 0 : getFollow().hashCode());
        result = prime * result + ((getCollection() == null) ? 0 : getCollection().hashCode());
        result = prime * result + ((getForward() == null) ? 0 : getForward().hashCode());
        result = prime * result + ((getLikes() == null) ? 0 : getLikes().hashCode());
        result = prime * result + ((getUnlikes() == null) ? 0 : getUnlikes().hashCode());
        result = prime * result + ((getUnfollow() == null) ? 0 : getUnfollow().hashCode());
        result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", articleWeMedia=").append(articleWeMedia);
        sb.append(", articleCrawlers=").append(articleCrawlers);
        sb.append(", channelId=").append(channelId);
        sb.append(", read20=").append(read20);
        sb.append(", read100=").append(read100);
        sb.append(", readCount=").append(readCount);
        sb.append(", comment=").append(comment);
        sb.append(", follow=").append(follow);
        sb.append(", collection=").append(collection);
        sb.append(", forward=").append(forward);
        sb.append(", likes=").append(likes);
        sb.append(", unlikes=").append(unlikes);
        sb.append(", unfollow=").append(unfollow);
        sb.append(", createdTime=").append(createdTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}